<template>
    <h3>我是子组件</h3>
</template>
<script setup>
    import { useAttrs } from "vue"

    const attrs = useAttrs()
    console.log(attrs) // { msg2:"2222", title: "3333" }
</script>